home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / utilities / right fax / NTDRV.Z / PRINTER.INF < prev    next >
Encoding:
INI File  |  1995-09-28  |  13.3 KB  |  347 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3.  
  4. [LanguagesSupported]
  5.     ENG
  6.  
  7. [Options]
  8. "RightFAX NT fax driver" = bliceui,  blicedta,  blicent
  9.  
  10. [OptionsTextENG]
  11. "RightFAX NT fax driver" = "RightFAX NT fax driver"
  12.  
  13. [StringsENG]
  14.     String1 = "The printer model "
  15.     String2 = " is already installed."
  16.     String3 = "Failed to connect to the print server."
  17.     String4 = "The driver files for the printer model "
  18.     String5 = " couldn't be copied.  Failed to install the printer model."
  19.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  20.               "group to carry out this operation."
  21.     String7 = " could not be installed."
  22.     String8 = "After you have completed adding the printer, remember to Configure the RightFAX"
  23.     String9 = " Driver and Software through the Control Panel prior to faxing."
  24.  
  25. [Identify]
  26.     read-syms Identification
  27.     set Status     = STATUS_SUCCESSFUL
  28.     set Identifier = $(OptionType)
  29.     set Media      = #("Source Media Descriptions", 1, 1)
  30.     Return $(Status) $(Identifier) $(Media)
  31.  
  32. [ReturnOptions]
  33.     set Status        = STATUS_FAILED
  34.     set OptionList     = {}
  35.     set OptionTextList = {}
  36.     set LanguageList = ^(LanguagesSupported, 1)
  37.     Ifcontains(i) $($0) in $(LanguageList)
  38.         goto returnoptions
  39.     else
  40.         set Status = STATUS_NOLANGUAGE
  41.         goto finish_ReturnOptions
  42.     endif
  43. returnoptions = +
  44.     set OptionList     = ^(Options, 0)
  45.     set OptionTextList = ^(OptionsText$($0), 1)
  46.     set Status         = STATUS_SUCCESSFUL
  47. finish_ReturnOptions = +
  48.     Return $(Status) $(OptionList) $(OptionTextList)
  49.  
  50. [InstallOption]
  51.     set Status   = STATUS_FAILED
  52.     set Option   = $($1)
  53.     set SrcDir   = $($2)
  54.     set AddCopy  = $($3)
  55.     set DoCopy   = $($4)
  56.     set DoConfig = $($5)
  57.     set LanguageList = ^(LanguagesSupported, 1)
  58.     Ifcontains(i) $($0) in $(LanguageList)
  59.     else
  60.         set Status = STATUS_NOLANGUAGE
  61.         goto finish_InstallOption
  62.     endif
  63.     read-syms Strings$($0)
  64.     set OptionList = ^(Options, 0)
  65.     ifcontains $(Option) in $(OptionList)
  66.     else
  67.         goto finish_InstallOption
  68.     endif
  69.     set OptionList = ""
  70.     set ConfigOption = #(Options, $(Option), 1)
  71.     set DataOption   = #(Options, $(Option), 2)
  72.     set DriverOption = #(Options, $(Option), 3)
  73. installtheoption = +
  74.     ifstr(i) $(AddCopy) == "YES"
  75.         install Install-AddCopyOption
  76.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  77.             Debug-Output "Adding video files to copy list failed"
  78.             goto finish_InstallOption
  79.         endif
  80.     endif
  81.     ifstr(i) $(DoCopy) == "YES"
  82.         read-syms ProgressCopy$($0)
  83.         install Install-DoCopyOption
  84.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  85.             Debug-Output "Copying files failed"
  86.             goto finish_InstallOption
  87.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  88.             set Status = STATUS_USERCANCEL
  89.             goto finish_InstallOption
  90.         endif
  91.     endif
  92.     ifstr(i) $(DoConfig) == "YES"
  93.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  94.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  95.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  96.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  97.         ifstr(i) $(STATUS) == YES
  98.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  99.             ifstr(i) $(STATUS) == YES
  100.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  101.             endif
  102.         endif
  103.         ifstr(i) $(STATUS) == NO
  104.             set OptionText = #(OptionsText$($0), $(Option), 1)
  105.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  106.             Debug-Output "Copying printer files failed"
  107.             goto finish_InstallOption
  108.         endif
  109.         install Install-Configure
  110.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  111.             Debug-Output "Installing printer driver failed"
  112.             goto finish_InstallOption
  113.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  114.             set Status = STATUS_USERCANCEL
  115.             goto finish_InstallOption
  116.         endif
  117.         ifstr(i) $(STATUS) != "ADDED"
  118.             set OptionText = #(OptionsText$($0), $(Option), 1)
  119.             ifstr(i) $(STATUS) == "PRESENT"
  120.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  121.             else-ifstr(i) $(STATUS) == "DENIED"
  122.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  123.             else
  124.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  125.             endif
  126.             goto finish_InstallOption
  127.         endif
  128.  
  129.         set KeyName = "SYSTEM\CurrentControlSet\Services\EventLog\System"
  130.         OpenRegKey $(!REG_H_LOCAL) "" $(KeyName) $(!REG_KEY_ALL_ACCESS) KeyHandle
  131.         ifint $(RegLastError) != $(!REG_ERROR_SUCCESS)
  132.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "FATAL" "PRINTER.INF: Could not open EventLog key"
  133.             Debug-Output "PRINTER.INF: Couldn't open EventLog key"
  134.             goto end_InstallConfigure
  135.         endif
  136.         CreateRegKey $(KeyHandle) {RightFAXPrintProcessor,0,GenericClass} "" $(!REG_KEY_ALL_ACCESS) "" EventLogKey
  137.         ifstr(i) $(EventLogKey) == ""
  138.            shell "subroutn.inf" SetupMessage STATUS "CreateRegKey failed, opening key"
  139.            OpenRegKey $(KeyHandle) "" RightFAXPrintProcessor $(!REG_KEY_ALL_ACCESS) EventLogKey
  140.         endif
  141.         Ifstr $(EventLogKey) != $(KeyNull)
  142.            set RFDLLPATH = "%SystemRoot%\System32\spool\prtprocs\"$(!STF_PRNPLATFORM)"\rfprint.dll"
  143.            SetRegValue $(EventLogKey) {EventMessageFile,0,$(!REG_VT_EXPAND_SZ),$(RFDLLPATH)}
  144.            SetRegValue $(EventLogKey) {TypesSupported,0,$(!REG_VT_DWORD),7}
  145.            CloseRegKey $(EventLogKey)
  146.         else
  147.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) FATAL "PRINTER.INF: Could not create EventLog key"
  148.         endif
  149.         CloseRegKey $(KeyHandle)
  150.      end_InstallConfigure =+
  151.          shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) STATUS +
  152.                $(String8)$(String9)
  153.     ;    LoadLibrary x $(!STF_WINDOWSSYSPATH)\rfprint.cpl MYLIBHAND
  154.     ;    LibraryProcedure x, $(MYLIBHAND), InstallPrintProc
  155.     ;    FreeLibrary $(MYLIBHAND)
  156.     endif
  157.     set Status = STATUS_SUCCESSFUL
  158. finish_InstallOption = +
  159.     Return $(Status)
  160.  
  161. [Install-AddCopyOption]
  162.     set STF_VITAL = ""
  163.     set STF_OVERWRITE = "VERIFYSOURCEOLDER"
  164.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  165.                                   $(ConfigOption)              +
  166.                                   $(SrcDir)                    +
  167.                                   $(!STF_PRNDRIVERPATH)
  168.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  169.                                   $(DataOption)                +
  170.                                   $(SrcDir)                    +
  171.                                   $(!STF_PRNDRIVERPATH)
  172.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  173.                                   $(DriverOption)              +
  174.                                   $(SrcDir)                    +
  175.                                   $(!STF_PRNDRIVERPATH)
  176.     AddSectionFilesToCopyList     Files-OtherProc              +
  177.                                   $(SrcDir)                    +
  178.                                   $(!STF_PRNPROCPATH)
  179.     AddSectionFilesToCopyList     Files-OtherSys               +
  180.                                   $(SrcDir)                    +
  181.                                   $(!STF_WINDOWSSYSPATH)
  182.  
  183.     exit
  184.  
  185. [Install-DoCopyOption]
  186.     CopyFilesInCopyList
  187.     exit
  188.  
  189. [Install-Configure]
  190.     set Model       = $(Option)
  191.     ifstr(i) $(!STF_PRNPLATFORM) == "w32x86"
  192.         set Environment = "Windows NT x86"
  193.     else-ifstr(i) $(!STF_PRNPLATFORM) == "w32mips"
  194.         set Environment = "Windows NT R4000"
  195.     else
  196.         set Environment = ""
  197.     endif
  198.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  199.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  200.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  201.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver  +
  202.                                                $(Model)           +
  203.                                                $(Environment)     +
  204.                                                $(Driver)          +
  205.                                                $(DataFile)        +
  206.                                                $(ConfigFile)      +
  207.                                                $(!STF_PRINTSERVER)
  208.     exit
  209.  
  210. [ProgressCopyENG]
  211.     ProCaption   = "RightFAX NT Fax Driver Setup"
  212.     ProCancel    = "Cancel"
  213.     ProCancelMsg = "RightFAX NT Fax Driver is not correcly installed.  Are you sure you want "+
  214.                    "to cancel copying files?"
  215.     ProCancelCap = "Setup Message"
  216.     ProText1     = "Copying:"
  217.     ProText2     = "To:"
  218.  
  219. [ExternalInstallOption]
  220.     Set !G:DebugOutputControl = 0
  221.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  222.     set DrivesToFree = {}
  223.     install LoadSetupLibrary
  224.     ifstr(i)      $(STF_LANGUAGE)  == ""
  225.         goto end
  226.     else-ifstr(i) $(OPTION)        == ""
  227.         goto end
  228.     else-ifstr(i) $(ADDCOPY)       == ""
  229.         goto end
  230.     else-ifstr(i) $(DOCOPY)        == ""
  231.         goto end
  232.     else-ifstr(i) $(DOCONFIG)      == ""
  233.         goto end
  234.     endif
  235.     read-syms UiVars
  236.     detect    UiVars
  237.     read-syms ProductType
  238.     read-syms Strings$(STF_LANGUAGE)
  239.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  240.         set STF_PRNPLATFORM = "w32x86"
  241.     else
  242.         goto end
  243.     endif
  244.     set STF_WINSPOOLPATH = $(!STF_WINDOWSSYSPATH)\spool
  245.     set STF_PRNPROCPATH = $(!STF_WINSPOOLPATH)\prtprocs\w32x86
  246. ;    set STF_SRCDIR = A:\
  247. ;    shell "registry.inf" GetNTSource
  248. ;    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  249. ;    else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  250. ;    else
  251. ;        set STF_SRCDIR = $($R1)
  252. ;    endif
  253. ;    shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  254. ;    ifint $($ShellCode) != $(!SHELL_CODE_OK)
  255. ;        Debug-Output "shelling DoAskSource failed"
  256. ;        goto end
  257. ;    endif
  258. ;    ifstr(i) $($R0) == STATUS_SUCCESSFUL
  259. ;        set STF_SRCDIR  = $($R1)
  260. ;        ifstr(i) $($R2) != ""
  261. ;            set DrivesToFree = >($(DrivesToFree), $($R2))
  262. ;        endif
  263. ;    else
  264. ;        goto end
  265. ;    endif
  266.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  267.     ifstr(i) $(IsFullPath) == "NO"
  268.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  269.         ifstr(i) $(STATUS) == "ERROR"
  270.             shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  271.             goto end
  272.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  273.             shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  274.             goto end
  275.         else-ifstr(i) $(STATUS) == "UNC-NOFREEDRIVE"
  276.             shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  277.             goto end
  278.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  279.             shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  280.             goto end
  281.         else
  282.             set STF_PRNDRIVERPATH = $(STATUS)
  283.             GetDriveInPath Drive $(STF_PRNDRIVERPATH)
  284.             set DrivesToFree = >($(DrivesToFree), $(Drive))
  285.         endif
  286.     endif
  287.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  288.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  289.         Debug-Output "Execing InstallOption failed"
  290.         goto end
  291.     endif
  292.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  293.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  294.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  295.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  296.     endif
  297. end =+
  298.     ForListDo $(DrivesToFree)
  299.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  300.     EndForListDo
  301.     install   FreeSetupLibrary
  302.     exit
  303.  
  304. [LoadSetupLibrary]
  305.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  306.     exit
  307.  
  308. [FreeSetupLibrary]
  309.     FreeLibrary $(!LIBHANDLE)
  310.     exit
  311.  
  312. [UiVars]
  313.     PlatformID_I386  = I386
  314.     PlatformID_Mips  = Mips
  315.     STF_CONTROLSET     = CurrentControlSet
  316.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  317.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  318.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER)
  319.  
  320. [Source Media Descriptions]
  321.     1  = "RightFAX NT Fax Driver Disk", TAGFILE = disk1
  322.  
  323. [ProductType]
  324. STF_PRODUCT  = Winnt
  325. STF_PLATFORM = I386
  326.  
  327. [Files-PrinterConfig]
  328. bliceui = 1,BLICEUIF.DLL , SIZE=55808
  329.  
  330. [Files-PrinterData]
  331. blicedta = 1,BLICENT.INI , SIZE=2298
  332.  
  333. [Files-PrinterDriver]
  334. blicent = 1,BLICENT.DLL , SIZE=74752
  335.  
  336. [Files-OtherSys]
  337. tiffdll = 1, TIFF.DLL   , SIZE=133120
  338. rfpcpl  = 1, RFPRINT.CPL, SIZE=24576
  339. ctl3d32 = 1, CTL3D32.DLL, SIZE=26624 OVERWRITE=OLDER
  340.  
  341. [Files-OtherProc]
  342. faxctrl  = 1, FAXCTRL.EXE , SIZE=81920
  343. bbarlm   = 1, BBARLM.DLL  , SIZE=19456
  344. rfprint  = 1, RFPRINT.DLL , SIZE=24576
  345. blicectr = 1, BLICECTR.DLL, SIZE=7680
  346.  
  347.